#include<iostream>
#include<string.h>
using namespace std;
int main(void){
	string str = "";
	char t = ' ';
    cin>>str;
    int index = str.size(); 
    for(int i = 0;i < str.size() / 2;i++){
        t = str[i];
        str[i] = str[index - 1];
        str[index - 1] = t;
        index --;
    }
    cout<<str;
	return 0;
}
